<?php
namespace Apps\Backend\Models;
use Phalcon\Mvc\Model;

class SuccessLogins extends Model
{
    public $id;
    public $created_by;
    public $ip_address;
    public $user_agent;
    public $status = 0;

    public function initialize()
    {
        $this->setSource(ALIAS . "success_logins");
        $this->belongsTo('created_by', 'Apps\Backend\Models\Users', 'id', array('alias' =>
                'create'));
    }
}
